<template>
  <div>
    <p>这是count{{ count }}</p>
    <button @click="changePerson">修改值</button>
    <p>这是person{{ person }}</p>
  </div>
</template>

<script>
export default {
  name: "MyUpdate",
  props: ["count", "person"],
  methods: {
    changePerson() {
      this.person.name = "芜湖大司马";
    },
  },
};
</script>

<style>
</style>